@extends('layouts.master')

@section('title')
    商家审核——木投网商城管理后台
@stop

@section('app_css')
    <link rel="stylesheet" href="/resource/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resource/css/font-awesome.min.css">
    <link rel="stylesheet" href="/resource/css/animate.min.css">
    <link rel="stylesheet" href="/resource/css/custom.css">
    <link rel="stylesheet" href="/resource/css/green.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
    @stop

@section('app_js')
    <!--[if lt IE 9]>
    <script type="text/javascript" src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script type="text/javascript" src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="/resource/js/jquery.min.js"></script>
    <script type="text/javascript" src="/resource/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="/resource/js/custom.js"></script>
    <!-- icheck -->
    <script type="text/javascript" src="/resource/js/icheck.min.js"></script>
    <!-- Datatables -->
    <script type="text/javascript" src="/resource/js/jquery.dataTables.js"></script>
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script>
        $(document).ready(function(){
            var str = '<div class="popup"></div><div class="popup-img"></div>';
            var imgH = $(window).height()-100;
            $('body').append(str);
            $('.popup').css('height',$(document).height());
            $('.popup-img').css('height',imgH);

            $(document).delegate('.form-control img','click',function(){
                var src = $(this).attr('src');
                var img = '<img src='+src+' alt="">';
                $('.popup-img').html(img).show().css({'margin-top':-imgH/2,'margin-left':-($('.popup-img img').width())/2});
                $('.popup').show();
            });

            $(document).delegate('.popup-img img','click',function(){
                $('.popup').hide();
                $('.popup-img').hide();
            });

            $(document).delegate('.popup','click',function(){
                $('.popup').hide();
                $('.popup-img').hide();
            });

        });
    </script>
@stop

@section('content')
    <body class="nav-md">

    <div class="container body">


        <div class="main_container">

            @include('common.admin_menu')

                    <!-- top navigation -->
            @include('common.admin_nav')
                    <!-- /top navigation -->


            <!-- page content -->
            <div class="right_col" role="main">

                <div class="">

                    <div class="row cont">

                        <div class="col-md-6 col-sm-12 col-xs-12">
                            <div class="x_panel">
                                <div class="x_title">
                                    <h2>商家入驻管理 <small>商家入驻审核</small></h2>
                                    <div class="clearfix"></div>
                                </div>

                                <div class="x_content">
                                    <br />
                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="first-name">公司名称
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">{{$supplier->supplier_name}}</div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="control-label col-md-2 col-sm-2 col-xs-12" for="last-name">公司地址
                                            </label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">{{$supplier->address_all}}</div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">负责人姓名</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">{{$supplier->duty_name}}</div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">负责人手机</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">{{$supplier->duty_mobile}}</div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">营业执照</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">
                                                    @if($supplier->operate_license)
                                                        <img src="{{$supplier->operate_license}}" alt="">
                                                    @else
                                                     未上传图片
                                                    @endif
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">组织机构代码证</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">
                                                    @if($supplier->organization)
                                                    <img src="{{$supplier->organization}}" alt="">
                                                    @else
                                                        未上传图片
                                                    @endif
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">税务登记证</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">
                                                    @if($supplier->tax_license)
                                                    <img src="{{$supplier->tax_license}}" alt="">
                                                    @else
                                                        未上传图片
                                                    @endif
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">开户许可证</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <div class="form-control col-md-7 col-xs-12">
                                                    @if($supplier->account_licence)
                                                    <img src="{{$supplier->account_licence}}" alt="">
                                                    @else
                                                        未上传图片
                                                    @endif
                                                </div>
                                            </div>
                                        </div>
                                    {{ Form::open(['url'=>'/admin/supplier_examine_action', 'id'=>'demo-form2', 'class'=> 'form-horizontal form-label-left', 'files' => true, 'method' => 'post']) }}
                                    <input type="hidden" name="supplier_id" value="{{$supplier->supplier_id}}">
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">审核说明</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <input type="text" class="form-control col-md-7 col-xs-12" name="examine">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">状态</label>
                                            <div class="col-md-10 col-sm-10 col-xs-12">
                                                <label class="radio-inline">
                                                    <input type="radio" name="status" value="2" checked> 审核中
                                                </label>
                                                <label class="radio-inline">
                                                    <input type="radio" name="status" value="0"> 审核失败
                                                </label>
                                                <label class="radio-inline">
                                                    <input type="radio" name="status" value="1"> 审核通过
                                                </label>
                                            </div>
                                        </div>
                                        <div class="ln_solid"></div>
                                        <div class="form-group">
                                            <div class="col-md-10 col-sm-10 col-xs-12 col-md-offset-3">
                                                <button type="submit" class="btn btn-primary">取消</button>
                                                <button type="submit" class="btn btn-success">提交</button>
                                            </div>
                                        </div>
                                    {{ Form::close() }}
                                </div>
                            </div>
                        </div>
                        <br />
                        <br />
                        <br />

                    </div>
                </div>

                <!-- footer content -->

                <footer>
                    <div class="">
                        <p class="pull-right">Copyright 2016 mutouw.com All rights reserved. |
                            <span class="lead"> <i class="fa fa-logo-footer"></i> 木投网后台管理系统</span>
                        </p>
                    </div>
                    <div class="clearfix"></div>
                </footer>
                <!-- /footer content -->
            </div>
            <!-- /page content -->

        </div>
    </div>

    <div id="custom_notifications" class="custom-notifications dsp_none">
        <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
        </ul>
        <div class="clearfix"></div>
        <div id="notif-group" class="tabbed_notifications"></div>
    </div>
    </body>
@stop